package cb.wzby;

import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;
import java.util.Vector;

/**
 * @author wzby
 * @Date: 2022/7/30 17:13
 */
public class Treemap {
    public static void main(String[] args) {
        TreeMap<Integer,String> tm = new TreeMap<>();
        tm.put(5,"java");
        tm.put(2,"php");
        System.out.println(tm);
        TreeMap<String,String> tp = new TreeMap<>();
        tp.put("s1","java");
        tp.put("s2","javascript");
        tp.put("s3","php");
        tp.put("s3","css");
        tp.put("ss","java1");
        tp.put("ss","java2");
        tp.put("ss","java3");
        System.out.println(tp);


        // 支持线程案例，在多线程并发开发没有
        Vector<String> vc = new Vector<>();


        List<String> li = new ArrayList<>();
        li.add("java");
        li.add("java");
        li.add("java");
        System.out.println(li);

    }
}
